package controller

import (
	"express/api_helpers"
	"express/model"
	"github.com/gin-gonic/gin"
)

type Categorys struct {
	//date     string
	//page     int
	//pageSize int
}

func (i *Categorys) GetCategory(c *gin.Context) {
	var Category []model.Category
	//err := Model.GetAllUsers(&users)
	if err != nil {
		api_helpers.RespondJSON(c, 404, "未获取到数据", Category)
	} else {
		api_helpers.RespondJSON(c, 200, "获取数据成功", Category)
	}
}
